package org.dromara.tearoom.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.tearoom.domain.TerIotDeviceOperLog;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * IoT设备操作日志视图对象 ter_iot_device_oper_log
 *
 * @author ckj
 * @date 2025-04-17
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TerIotDeviceOperLog.class)
public class TerIotDeviceOperLogVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 设备 ID，主键，自增
     */
    @ExcelProperty(value = "设备 ID，主键，自增")
    private Long id;

    /**
     * 设备唯一标识符，全局唯一，用于识别设备
     */
    @ExcelProperty(value = "设备唯一标识符，全局唯一，用于识别设备")
    private String deviceKey;

    /**
     * 操作
     */
    @ExcelProperty(value = "操作")
    private String operation;

    /**
     * 操作类型
     */
    @ExcelProperty(value = "操作类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "iot_device_oper_type")
    private String type;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 修改时间
     */
    @ExcelProperty(value = "修改时间")
    private Date updateTime;


}
